home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicInternalFrameTitlePane$CloseAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  915 b   |  26 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.beans.PropertyVetoException;
  5. import javax.swing.AbstractAction;
  6.  
  7. public class BasicInternalFrameTitlePane$CloseAction extends AbstractAction {
  8.    // $FF: synthetic field
  9.    private final BasicInternalFrameTitlePane this$0;
  10.  
  11.    public BasicInternalFrameTitlePane$CloseAction(BasicInternalFrameTitlePane var1) {
  12.       super("Close");
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       if (this.this$0.frame.isClosable()) {
  18.          try {
  19.             this.this$0.frame.setClosed(true);
  20.          } catch (PropertyVetoException var2) {
  21.          }
  22.       }
  23.  
  24.    }
  25. }
  26.